package com.hut.oa.model.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.hut.oa.model.bean.DiscussVoteSelectContent;
import com.hut.oa.model.bean.User;

public interface DiscussVoteContentMapper {
	//通过选项id得到所选用户信息
	List<User> findUserById (@Param("id")Long id);
	//通过帖子id得到所参与用户信息
	List<User> findAllUserById(@Param("id")Long id);
	//计算给本帖投票总数
	Long countAllById(@Param("id")Long id);
	
	int intoContent(@Param("userid")Long userid,@Param("contentid")Long contentid);
	//查出本用户的选项
	List<DiscussVoteSelectContent> contentIdByUserId(@Param("id")Long id);
}
